<%--
  Created by IntelliJ IDEA.
  User: fire'ge
  Date: 2022/5/1
  Time: 15:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>店 铺 管 理</title>
    <link rel="stylesheet" href="/TakeawaySystem/css/Center.css" type="text/css">

</head>
<body>
<div>
    <table id="name-label">
        <tr>
            <td align="center" colspan="4">你好！${user.username}
                <a href="/TakeawaySystem/jsp/BusinessCenter.jsp">返回</a>  </td>
        </tr>
    </table>
    <form method="post" action="/TakeawaySystem/business/updateShop">
        <table id="updateTable">
            <tr>
                <td>
                    商店名:<input type="text" name="shopName" value="${shop.shopName}">
                </td>
            </tr>

            <tr>
                <td>
                    描述:<input type="text" name="description" value="${shop.description}">
                </td>
            </tr>
            <tr>
                <td>
                    是否发放优惠劵
                </td>
            </tr>
            <tr>
                <td>
                    <input type="radio" name="sentCoupon" <c:if test="${sentCoupon.isSent==0}">
                           checked="checked"</c:if>value=0>发放
                    <input type="radio" name="sentCoupon" <c:if test="${sentCoupon.isSent==1}">
                            checked="checked"</c:if>value=1>不发放

                </td>
            </tr>

            <tr>
                <td>
                    <input type="submit" value="修 改 信 息">
                </td>
            </tr>
        </table>
        <table>
            <tr>
                <td>
                    <a href="checkMenu?shopId=${shop.id}" >菜单管理</a>
                </td>
                <td>
                    <a href="../user/checkMsg?shopId=${shop.id}" >留言板管理</a>
                </td>
            </tr>
        </table>
    </form>

</div>
</body>
</html>
